import request from '@/utils/request'

export function getTeacherList(data) {
  return request({
    url: 'xingyue/teacher/teacher/list/API_001',
    method: 'post',
    data:data
  })
}

export function changeTeacherStatus(data) {
  return request({
    url: 'xingyue/teacher/teacher/updateStatus/API_002',
    method: 'post',
    data:data
  })
}

export function addTeacher(data) {
  return request({
    url: 'xingyue/teacher/teacher/insert/API_003',
    method: 'post',
    data:data
  })
}

export function visionTeacher(id) {
  return request({
    url: 'xingyue/teacher/teacher/updatea/API_004/'+id,
    method: 'post',
  })
}

export function updateTeacher(data) {
  return request({
    url: 'xingyue/teacher/teacher/update/API_005',
    method: 'post',
    data:data
  })
}

export function deleteTeacher(id) {
  return request({
    url: 'xingyue/teacher/teacher/delete/API_006/'+id,
    method: 'post',
  })
}

export function teacherDict() {
  return request({
    url: 'xingyue/teacher/teacher/dict/API_007',
    method: 'post',
  })
}

